﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

/// <summary>
/// UcTreeNode 的摘要说明
/// </summary>
[DataContract(IsReference = true)]
[KnownType(typeof(UcTreeNode))]
public class UcTreeNode
{

    private object _tag;
    private string _name;
    private string _text;
    private int _imageindex;    //节点图标
    private int _selectimageindex;  //选中节点图标
    private List<UcTreeNode> _childnodes=new List<UcTreeNode>(); //子节点
    private string _forecolor;

    [DataMember]
    public object Tag
    {
        get
        {
            return _tag;
        }

        set
        {
            _tag = value;
        }
    }

    [DataMember]
    public string Name
    {
        get
        {
            return _name;
        }

        set
        {
            _name = value;
        }
    }

    [DataMember]
    public string Text
    {
        get
        {
            return _text;
        }

        set
        {
            _text = value;
        }
    }

    [DataMember]
    public int Imageindex
    {
        get
        {
            return _imageindex;
        }

        set
        {
            _imageindex = value;
        }
    }

    [DataMember]
    public int Selectimageindex
    {
        get
        {
            return _selectimageindex;
        }

        set
        {
            _selectimageindex = value;
        }
    }

    [DataMember]
    public List<UcTreeNode> Childnodes
    {
        get
        {
            return _childnodes;
        }

        set
        {
            _childnodes = value;
        }
    }

    [DataMember]
    public string ForeColor
    {
        get
        {
            return _forecolor;
        }

        set
        {
            _forecolor = value;
        }
    }
}